Security News
ESLint is Now Language-Agnostic: Linting JSON, Markdown, and Beyond
ESLint has added JSON and Markdown linting support with new officially-supported plugins, expanding its versatility beyond JavaScript.
Drains an (async) iterable discarding its content and does not return anything.
Mostly useful for tests or when you want to be explicit about consuming an iterable without doing anything with any yielded values.
$ npm install --save it-drain
const drain = require('it-drain')
// This can also be an iterator, async iterator, generator, etc
const values = [0, 1, 2, 3, 4]
await drain(values)
FAQs
Empties an async iterator
The npm package it-drain receives a total of 36,540 weekly downloads. As such, it-drain popularity was classified as popular.
We found that it-drain demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
ESLint has added JSON and Markdown linting support with new officially-supported plugins, expanding its versatility beyond JavaScript.
Security News
Members Hub is conducting large-scale campaigns to artificially boost Discord server metrics, undermining community trust and platform integrity.
Security News
NIST has failed to meet its self-imposed deadline of clearing the NVD's backlog by the end of the fiscal year. Meanwhile, CVE's awaiting analysis have increased by 33% since June.